package fr.cie.blog.domainservice;


import java.util.List;

import fr.cie.blog.beans.Card;
import fr.cie.blog.beans.Country;
import fr.cie.blog.modeldao.hib.CountryDaoImplHib;

/**
 * @author AetM
 * 
 */
public class ServiceCountryDao implements IServiceCountry {
	/**
	 * serviceCountryImpl.
	 */
	private final IServiceCountry servCountryImpl = new CountryDaoImplHib();

	/*
	 * (non-Javadoc)
	 * 
	 * @see fr.cie.blog.domainservice.IServiceGeneric#save(java.lang.Object)
	 */
	@Override
	public final int save(final Country country) {
		return servCountryImpl.save(country);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see fr.cie.blog.domainservice.IServiceGeneric#delete(java.lang.Object)
	 */
	@Override
	public final int delete(final Country country) {
		return servCountryImpl.delete(country);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see fr.cie.blog.domainservice.IServiceGeneric#findAll()
	 */
	@Override
	public final List<Country> findAll() {
		return servCountryImpl.findAll();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * fr.cie.blog.domainservice.IServiceCountry#findByCard(fr.cie.blog.beans
	 * .Card)
	 */
	@Override
	public final Country findByCard(final Card pCard) {
		return servCountryImpl.findByCard(pCard);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see fr.cie.blog.domainservice.IServiceGeneric#findById(int)
	 */
	@Override
	public final Country findById(final long pIdentifier) {
		return servCountryImpl.findById(pIdentifier);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see fr.cie.blog.domainservice.IServiceGeneric#update(java.lang.Object)
	 */
	@Override
	public final int update(final Country country) {
		return servCountryImpl.update(country);
	}

	/* (non-Javadoc)
	 * @see fr.cie.blog.domainservice.IServiceCountry#save(java.util.List)
	 */
	@Override
	public final int save(final List<Country> pCountryListToAdd) {
		return servCountryImpl.save(pCountryListToAdd);
	}

}